package com.lcn.demo.service.impl;

import com.codingapi.tx.annotation.TxTransaction;
import com.lcn.demo.client.Demo3Client;
import com.lcn.demo.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author lilinshen
 * @title 请填写标题
 * @description 请填写相关描述
 * @date 2018/11/28 17:51
 */
@Service
public class DemoServiceImpl implements DemoService {

    @Autowired
    private Demo3Client demo3Client;

    @Override
    @TxTransaction
    public int save() {
        demo3Client.save();
        return 0;
    }
}
